package com.pet.web.controller.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 品牌对象 pet_brand
 *
 * @author pet
 * @date 2022-10-09
 */
@ApiModel
public class BrandAddBody {

    /**
     * 类目
     */
    @ApiModelProperty(value = "类目", required = true)
    private List<String> category;

    /**
     * 品牌名称
     */
    @ApiModelProperty(value = "品牌名称", required = true)
    private String brandName;

    @NotEmpty(message = "类目列表不能为空")
    public List<String> getCategory() {
        return category;
    }

    public void setCategory(List<String> category) {
        this.category = category;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    @NotBlank(message = "品牌名称不能为空")
    @Length(min = 1, max = 4)
    public String getBrandName() {
        return brandName;
    }
}
